package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_library")
public class Library implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "library_id", type = IdType.AUTO)
    private Integer libraryId;

    @TableField(value = "library_name_english")
    private String libraryNameEnglish;

    @TableField(value = "library_name")
    private String libraryName;

    @TableField(value = "PISSN")
    private String pissn;

    @TableField(value = "ELSSN")
    private String elssn;

    @TableField(value = "PISBN")
    private String pisbn;

    @TableField(value = "ELSBN")
    private String elsbn;

    @TableField(value = "literature_id")
    private Integer literatureId;

    @TableField(value = "library_author")
    private String libraryAuthor;

    @TableField(value = "carrier_id")
    private Integer carrierId;

    @TableField(value = "subject_id")
    private Integer subjectId;

    @TableField(value = "country_id")
    private Integer countryId;

    @TableField(exist = false)
    private String literatureName;

    @TableField(exist = false)
    private String carrierName;

    @TableField(exist = false)
    private String subjectName;

    @TableField(exist = false)
    private String countryName;
}